package chapter5.using_factory_bean;

import org.springframework.context.support.GenericXmlApplicationContext;

import chapter5.Custom_FactoryBean.MessageDigester;

public class MessageDigestFactoryExample {
	public static void main(String[] args) {
		GenericXmlApplicationContext ctx = new GenericXmlApplicationContext();
		ctx.load("classpath:chapter5/using_factory_bean/factoryMethod.xml");
		ctx.refresh();

		MessageDigester digester = (MessageDigester) ctx.getBean("degister");
		digester.digest("Hello word");
	}
}
